import hashlib

class crypto:
    def md5(self,target:'list|str|dict'):
        cryStr=''
        if isinstance(target,list):
            for o in target:
                if isinstance(o,str):
                    cryStr+=o
                else:
                    cryStr+=str(o)
        elif isinstance(target,dict):
            for o in target:
                if isinstance(target[o],str):
                    cryStr+=target[o]
                else:
                    cryStr+=str(target[o])
        elif isinstance(target,str):
            cryStr= target
        return hashlib.md5(bytes(cryStr, encoding='utf-8')).hexdigest()

    def sha(self,target:str, size=256):
        pass
    def rsa(self,target:str):
        pass
    def des(self,target:str):
        pass
    def aes(self,target:str):
        pass

CRYPTO= crypto()